﻿/// <reference path="jquery-2.0.3.js" />
/// <reference path="dataPersister.js" />
/// <reference path="controller.js" />
/// <reference path="utils.js" />
/// <reference path="ui.js" />

$(function () {
    utils.stringEscapingShim();

    var dataPersister = HoodNews.data.getDataPersister("http://localhost:17456/api/");
    var ui = HoodNews.ui.getUi("#container");
    var controller = HoodNews.controler.getControler(dataPersister, ui);

    controller.start();
    debugger;
    //dataPersister.article.create("title", "some content", []);
    //dataPersister.article.getAll(10, false);
    //dataPersister.article.update(1, "Title Update", "äsda", []);
    //dataPersister.article.remove(2);
    //dataPersister.comment.add(1, "Koko");
    //dataPersister.comment.add(1, "Sub Koko", 2);
    //dataPersister.comment.remove(2);
    //dataPersister.vote.add(1, 1);
    //dataPersister.vote.update(1, 1, -1);
    //var ui = BattleGame.ui.getUi("#container");
    //var controler = BattleGame.controler.getControler(dataPersister, ui);

    //controler.start();
});